Railway for steep mountains; a cogwheel on the locomotive engages cogs on a center rail to provide traction